<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex benben-position-layout flex flex-wrap align-center stageTheatre_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }"
			>
				<view class='flex flex-wrap align-center justify-between flex-sub stageTheatre_fd0_0'>
					<view
						class='flex flex-wrap align-center stageTheatre_fd0_0_c0'
						@tap.stop="handleJumpDiy"
						data-type="back"
						data-url="1"
					>
						<text class='fu-iconfont2  stageTheatre_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text
							class='stageTheatre_fd0_0_c1_c0'
							style="font-family: Alimama DongFangDaKai, Alimama DongFangDaKai;"
						>剧场</text>
					</view>
					<view class='flex flex-wrap align-center justify-end stageTheatre_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<view
				class="loading_css"
				v-if="isShow"
			>
				<u-loading
					size="36"
					color="#AD3823"
				></u-loading>
				<view>加载中</view>
			</view>
			<block v-else>
				<!---flex布局flex布局开始-->
				<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout stageTheatre_flex_1">
					<view class='flex flex-wrap align-center stageTheatre_fd1_0'>
						<text class='stageTheatre_fd1_0_c0'>课程简介</text>
					</view>
					<view class='flex flex-direction flex-wrap align-stretch stageTheatre_fd1_1'>
						<view class='flex flex-wrap align-center stageTheatre_fd1_1_c0'>
							<text class='stageTheatre_fd1_1_c0_c0'>{{name}}</text>
							<text
								class='stageTheatre_fd1_1_c0_c1'
								v-if="status == 0"
							>未开始</text>
							<text
								class='stageTheatre_fd1_1_c0_c1'
								v-if="status == 1"
							>在学习</text>
							<text
								class='stageTheatre_fd1_1_c0_c1'
								v-if="status == 2"
							>已学完</text>
						</view>
						<view class='flex flex-wrap align-center'>
							<!-- <text class='stageTheatre_fd1_1_c1_c0'>简介：</text> -->
							<u-parse :html="content"></u-parse>
						</view>
					</view>
				</view>

				<view
					class="flex benben-flex-layout flex-wrap align-center stageTheatre_flex_2"
					@tap.stop="handleJumpDiy"
					data-type="navigateTo"
					:data-url="`/pages/shouye/toLearn/toLearn?aid=${aid}`"
				>
					<view class='flex flex-wrap align-center justify-center stageTheatre_fd2_0'>
						<text class='stageTheatre_fd2_0_c0'>沉浸
							剧场</text>
					</view>
				</view>
			</block>

		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				aid: "",
				name: "",
				status: "",
				content: "",
				isShow: true,
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let { aid, status } = options;
			if (this.aid !== undefined) this.aid = aid;
			if (this.status !== undefined) this.status = status;
			this.getCategoryInfo();
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			// 当前阶段信息  6556232bd672a
			getCategoryInfo() {
				this.$api.post(global.API_VERSION + '6556232bd672a', {
					category_id: this.aid
				}).then(res => {
					this.isShow = false;
					if (res.data.code == 1) {
						this.name = res.data.data.name || "";
						this.content = res.data.data.desc;
					} else {
						this.$message.info(res.data.msg);
					}
				})
			}
		}
	};
</script>
<style
	lang="scss"
	scoped
>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(https://www.guochaoxiaoju.com/uploads/mini/802.png) no-repeat;
		background-size: 100% auto;
	}

	.stageTheatre_flex_0 {
		background: url(https://www.guochaoxiaoju.com/uploads/mini/802.png) no-repeat;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.stageTheatre_fd0_0_c1_c0 {
		color: #FFFFFF;
		font-size: 40rpx;
		font-weight: 400;
	}

	.stageTheatre_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: var(--benbenFontColor3);
	}

	.stageTheatre_fd0_0_c0 {
		width: 120rpx;
	}

	.stageTheatre_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.stageTheatre_flex_1 {
		padding: 24rpx 30rpx 0rpx 30rpx;
	}

	.stageTheatre_fd1_1_c1_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 48rpx;
	}

	.stageTheatre_fd1_1_c0_c1 {
		color: #AD3823;
		font-size: 34rpx;
		font-weight: 400;
		margin: 0rpx 0rpx 0rpx auto;
	}

	.stageTheatre_fd1_1_c0_c0 {
		color: #333333;
		font-size: 40rpx;
		font-weight: 400;
	}

	.stageTheatre_fd1_1_c0 {
		margin: 0rpx 0rpx 33rpx 0rpx;
	}

	.stageTheatre_fd1_1 {
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		width: 690rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
	}

	.stageTheatre_fd1_0_c0 {
		color: #FFFFFF;
		font-size: 64rpx;
		font-weight: 400;
	}

	.stageTheatre_fd1_0 {
		margin: 0rpx 0rpx 96rpx 0rpx;
	}

	.stageTheatre_flex_2 {
		position: absolute;
		right: 30rpx;
		bottom: 20%;
	}

	.stageTheatre_fd2_0_c0 {
		background: linear-gradient(146deg, #BB4834 0%, #96301D 100%);
		box-shadow: 0rpx 3rpx 6rpx 1rpx rgba(173, 56, 35, 0.07);
		color: #FFFFFF;
		font-size: 32rpx;
		font-weight: 400;
	}

	.stageTheatre_fd2_0 {
		background: linear-gradient(146deg, #BB4834 0%, #96301D 100%);
		width: 116rpx;
		height: 116rpx;
		box-shadow: 0rpx 3rpx 6rpx 1rpx rgba(173, 56, 35, 0.07);
		border-radius: 58rpx;
	}
</style>

<style>
	page {
		font-family: Alimama DongFangDaKai;
	}
</style>